package com.qf.business.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.data.system.dto.RoleDto;
import com.qf.data.system.entity.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    @Select("select *, (select dep_name from department where id = r.dep_id) as depName from role r")
    List<RoleDto> queryList();
}

